import cn.bjtu.archiprac.papercheck.application.controller.UserController;
import cn.bjtu.archiprac.papercheck.application.model.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Zexin Lin on 4/12/2018.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-mybatis.xml");
        UserController userController = context.getBean(UserController.class);
        User newUser = new User();
        newUser.setEmail("123123123@123.xxx");
        newUser.setPassword("123456");
    }
}
